package com.nov.multidatasource.entity.primary;

import lombok.Getter;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Arrays;


/**
 * 项目名称：CM
 * 类名称：CM_File_Info
 * 类描述：   CM_File_Info实体类
 * 创建人：ganxintong
 * 创建时间：2013-10-16 下午04:56:13
 * 修改人：ganxintong
 * 修改时间：2013-10-16 下午04:56:13
 * 修改备注：
 * 版本：1.0.1
 */
@Getter
public class V3FileInfo implements Serializable {

    //	private static final long serialVersionUID = 1L;
    private String file_id;        //主键
    private String cm_version;    //版本号
    private String cip;            //客户端ip
    private String batch_id;    //批次号
    private String doc_name;    //文档名
    private String doc_desc;    //文档描述
    private byte content[];        //文件内容
    private byte remarkcontent[];        //批注内容
    private String trade_type;    //0上传  1下载
    private String file_name;    //文件名
    private String file_format;    //文件格式
    private String file_type;    //文件类型
    private String file_size;    //文件大小
    private String file_value;  //文件内容(base64转码的图像，只有调用CMSaveForMoblie时，该字段才有值)
    private String remark_size;    //备注大小
    private String file_md5;    //MD5
    private String file_seq;    //文件序列
    private String qrstr;        //二维码信息,如果为反面，则没有二维码信息
    private String side;        //正反面标识 0-正面 1-反面
    private String operate_state;//操作状态	0-删除 1-正常 2-老版本
    private String operate_msg;     //操作信息
    private String operate_date;    //操作时间
    private Timestamp operate_time;//操作时间
    private String backup;        //备份状态 0-未备份 1-已备份
    private String sip;            //文件所在服务器ip
    private String sport;        //服务器端口
    //	private Page page;
    private String begindate;//起始日期
    private String enddate;//终止日期
    private String isOCRRead;//是否ocr识别 0：识别  1：不识别
    private String state;//是否重复录入了影像 0：正常  1：重复
    private String NCID;
    private String ocrxml;
    private String relatedfileid;
//	private OcrInfo ocrInfo;//发票信息

    public void setRelatedfileid(String relatedfileid) {
        this.relatedfileid = relatedfileid;
    }

    public void setOcrxml(String ocrxml) {
        this.ocrxml = ocrxml;
    }

    public void setNCID(String nCID) {
        NCID = nCID;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setIsOCRRead(String isOCRRead) {
        this.isOCRRead = isOCRRead;
    }

    public void setRemarkcontent(byte[] remarkcontent) {
        this.remarkcontent = remarkcontent;
    }

    public void setTrade_type(String tradeType) {
        trade_type = tradeType;
    }

    public void setBegindate(String begindate) {
        this.begindate = begindate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }
//	public Page getPage() {
//		return page;
//	}
//	public void setPage(Page page) {
//		this.page = page;
//	}

    public void setSip(String sip) {
        this.sip = sip;
    }

    public void setSport(String sport) {
        this.sport = sport;
    }

    public void setBackup(String backup) {
        this.backup = backup;
    }

    public void setCm_version(String cm_version) {
        this.cm_version = cm_version;
    }

    public void setDoc_desc(String doc_desc) {
        this.doc_desc = doc_desc;
    }

    public void setFile_id(String file_id) {
        this.file_id = file_id;
    }

    public void setCip(String cip) {
        this.cip = cip;
    }

    public void setBatch_id(String batch_id) {
        this.batch_id = batch_id;
    }

    public void setDoc_name(String doc_name) {
        this.doc_name = doc_name;
    }

    public void setFile_name(String file_name) {
        this.file_name = file_name;
    }

    public void setFile_format(String file_format) {
        this.file_format = file_format;
    }

    public void setFile_type(String file_type) {
        this.file_type = file_type;
    }

    public void setFile_size(String file_size) {
        this.file_size = file_size;
    }

    public void setFile_value(String file_value) {
        this.file_value = file_value;
    }

    public void setRemark_size(String remark_size) {
        this.remark_size = remark_size;
    }

    public void setFile_md5(String file_md5) {
        this.file_md5 = file_md5;
    }

    public void setFile_seq(String file_seq) {
        this.file_seq = file_seq;
    }

    public void setOperate_state(String operate_state) {
        this.operate_state = operate_state;
    }

    public void setOperate_msg(String operate_msg) {
        this.operate_msg = operate_msg;
    }

    public void setOperate_date(String operate_date) {
        this.operate_date = operate_date;
    }

    public void setOperate_time(Timestamp operate_time) {
        this.operate_time = operate_time;
    }

    public void setContent(byte[] content) {
        this.content = content;
    }

    public void setQrstr(String qrstr) {
        this.qrstr = qrstr;
    }

    public void setSide(String side) {
        this.side = side;
    }
//	public OcrInfo getOcrInfo() {
//		return ocrInfo;
//	}
//	public void setOcrInfo(OcrInfo ocrInfo) {
//		this.ocrInfo = ocrInfo;
//	}


    @Override
    public String toString() {
        return "CM_File_Info{" +
                "file_id='" + file_id + '\'' +
                ", cm_version='" + cm_version + '\'' +
                ", cip='" + cip + '\'' +
                ", batch_id='" + batch_id + '\'' +
                ", doc_name='" + doc_name + '\'' +
                ", doc_desc='" + doc_desc + '\'' +
                ", content=" + Arrays.toString(content) +
                ", remarkcontent=" + Arrays.toString(remarkcontent) +
                ", trade_type='" + trade_type + '\'' +
                ", file_name='" + file_name + '\'' +
                ", file_format='" + file_format + '\'' +
                ", file_type='" + file_type + '\'' +
                ", file_size='" + file_size + '\'' +
                ", file_value='" + file_value + '\'' +
                ", remark_size='" + remark_size + '\'' +
                ", file_md5='" + file_md5 + '\'' +
                ", file_seq='" + file_seq + '\'' +
                ", qrstr='" + qrstr + '\'' +
                ", side='" + side + '\'' +
                ", operate_state='" + operate_state + '\'' +
                ", operate_msg='" + operate_msg + '\'' +
                ", operate_date='" + operate_date + '\'' +
                ", operate_time=" + operate_time +
                ", backup='" + backup + '\'' +
                ", sip='" + sip + '\'' +
                ", sport='" + sport + '\'' +
                ", begindate='" + begindate + '\'' +
                ", enddate='" + enddate + '\'' +
                ", isOCRRead='" + isOCRRead + '\'' +
                ", state='" + state + '\'' +
                ", NCID='" + NCID + '\'' +
                ", ocrxml='" + ocrxml + '\'' +
                ", relatedfileid='" + relatedfileid + '\'' +
                '}';
    }
}
